<gm:page title="My Place" authenticate="true">

<gm:tabs target="myContainer"/>
  <gm:container id="myContainer" style="padding:3px;border:1px solid #369;width:1200px;">
    <gm:section id="sectionWorld" title="GeoTaskAssigner">
      <table width="100%">
        <tr>
        
    <td valign="top" width="50px">
<gm:list id="myPlaceList1" data="${user}/place" template="placeTemplate">
<gm:handleEvent src="myPlaceMap"/>
</gm:list>
</td>

    
        <td valign="top">
        <gm:map id="myPlaceMap" data="${myPlaceListsec2}" infotemplate="myInfoWindow" create="true">
        <gm:handleEvent src="myPlaceListsec2"/>
        <gm:handleEvent src="myPlaceList1"/>
        </gm:map>
        </td>
        </tr>
        </table>

    </gm:section>
    
    <gm:section id="AssignTask" title="AssignTask">
      <table width="90%">
      <tr>
      <td valign="top" width="50px">
    <gm:list id="myPlaceListsec2" data="${user}/place" template="placeTemplate">
    <gm:handleEvent src="myPlaceMap"/>
   </gm:list>
    </td>
    <td valign="top" width="300px">
    <gm:list id="tasks" data="${myPlaceList}/tasks" template="simpleTasks">
    <gm:handleEvent src="myPlaceListsec2"/>
    </gm:list>
    </td>
    </tr>
    </table>
    
     <table width="90%">
      <tr>
    <td valign="top" width="50px">
<gm:list id="myPlaceList" data="${user}/place" template="placeTemplate">
<gm:handleEvent src="myPlaceMap"/>
</gm:list>
</td>
</tr>
    </table>


</gm:section>

</gm:container>

<gm:template id="placeTemplate">
<table style="width: 400px" class="orange-theme" >
<thead >
<tr>
<td>Name</td>
<td>Age</td>
<td>ClientToMeet</td>
<td>Landmark</td>
</tr>
</thead>
<tbody repeat="true">
<tr>
<td><gm:text ref="gmd:Name" size="5"/></td>
<td><gm:number ref="gmd:Age" size="5"/></td>
<td><gm:text ref="gmd:ClientToMeet" size="5"/></td>
<td><gm:text ref="gmd:Landmark" size="5"/></td>
</tr>
</tbody>
</table>
<br/>

</gm:template>

<gm:template id="myInfoWindow">
<table style="width: 400px" class="blue-theme" >
<thead >
<tr>
<td>Name</td>
<td>Age</td>
<td>Customer</td>
<td>Landmark</td>
<td></td>
</tr>
</thead>
<tbody repeat="true">
<tr>
<td><gm:text ref="gmd:Name" size="5"/></td>
<td><gm:number ref="gmd:Age" size="5"/></td>
<td><gm:text ref="gmd:ClientToMeet" size="5"/></td>
<td><gm:text ref="gmd:Landmark" size="5"/></td>
<td align="right"><gm:editButtons/></td>
</tr>
</tbody>
</table>
<br/>
<gm:create label="New Place"/>
</gm:template>

<gm:template id="displayListTemplate">
<table style="width: 400px" class="blue-theme" >
<thead >
<tr>
<td>LandMark</td>
</tr>
</thead>
<tbody repeat="true">
<tr>
<td><gm:text ref="gmd:Landmark" size="5"/></td>
</tr>
</tbody>
</table>
<br/>
</gm:template>

<gm:template id="simpleTasks">
<table width="50%">
<tr repeat="true">
<td><gm:text ref="atom:title"/></td>
<td><gm:date ref="gd:when/@startTime"/></td>
<td><gm:editButtons text="false"/></td>
</tr>
</table>

<gm:create label="new task"/>
</gm:template>



<gm:template id="placeTemplateSec2">
<table style="width: 400px" class="orange-theme" >
<thead >
<tr>
<td>Name</td>
<td>ClientToMeet</td>
<td>Edit </td>


</tr>
</thead>
<tbody repeat="true">
<tr>
<td><gm:text ref="gmd:Name" size="5"/></td>
<td><gm:text ref="gmd:ClientToMeet" size="5"/></td>
<td><gm:editButtons text="false"/></td>


</tr>
</tbody>
</table>


</gm:template>
</gm:page>
